var mapModule = angular.module('MapModule');


mapModule.directive('navActive', function() {
    return {
        restrict: 'A',
        replace: true,
        link: function(scope, elem, attrs) {
            $('#floorMenu').find('li').eq(0).addClass('active');
            elem.on('click', function() {
                $.fn.fullpage.moveTo(attrs.navActive);
            });
        }
    };
});
